package com.yongjie.springbootlogin.mapper;

import com.yongjie.springbootlogin.entity.Login;
import org.apache.ibatis.annotations.Param;

public interface LoginMapper {
    //登录验证
    public Login findByuser(@Param("username") String username,
                            @Param("password") String password);

    //注册

    //注册新用户
    int adduser(@Param("username") String username,
                 @Param("password") String password,
                 @Param("age") int age);
    //注册医生账户
    int addUserDoctor(@Param("username") String username,
                      @Param("password") String password,
                      @Param("age") int age);

    //查询账号id
    String finIdByusername(String username);
    //查询账号
    String finusernameByusername(String username);
}
